# -*- coding: utf-8 -*-

#import os
import platform

class CLS_Modl_System_Info():
	
	''' Model - Classe que obtem informaçoes sobre o python e sobre o sistema '''
	
	def __init__(self):
		
		''' Construtor - Atraves do modulo platform sao obtidas informaçoes sobre o python e sistema em que esta a ser executado '''
		
		self.py_version = platform.python_version()
		self.py_compiler = platform.python_compiler()
		self.py_build = platform.python_build()
		self.system = platform.system()
		self.release = platform.release()
		self.version = platform.version()
		self.machine = platform.machine()
		self.processor = platform.processor()
		self.interpreter = platform.architecture()
		
	def get_info(self):
		
		''' Model - Funcao que retorna a informaçao numa string '''
		
		return "Python info :\nVersion : {0}\nCompiler : {1}\nBuild : {2}\nSystem info :\nSystem : {3}\nRelease : {4}\nVersion : {5}\nMachine : {6}\nProcessor : {7}\nInterpreter : {8}\n".\
			format(self.py_version, self.py_compiler, self.py_build, self.system, self.release, self.version, self.machine, self.processor, self.interpreter)
